/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.mockexam.theory.record.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 模拟理论考试记录Entity
 * @author zpp
 * @version 2020-02-10
 */
@Table(name="t_mockexam_theory_record", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="theory_id", attrName="theoryId", label="理论表主键"),
		@Column(name="checked", attrName="checked", label="选则"),
		@Column(name="user_id", attrName="userId", label="用户主键"),
		@Column(name="answer_id", attrName="answerId", label="用户主键"),
		@Column(name="question_type", attrName="questionType", label="用户主键"),
		@Column(name="question_id", attrName="questionId", label="用户主键"),
		@Column(name="score", attrName="score", label="分数"),
		@Column(name="post_id", attrName="postId", label="岗位"),
		
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class AppMockexamTheoryRecord extends DataEntity<AppMockexamTheoryRecord> {
	
	private static final long serialVersionUID = 1L;
	private String theoryId;		// 理论表主键
	private Integer checked;		// 选则
	private String userId;		// 用户主键
	private String answerId;
	private Integer questionType;
	private String questionId;
    private BigDecimal score;
    private String postId;
    
	public String getPostId() {
		return postId;
	}

	public void setPostId(String postId) {
		this.postId = postId;
	}

	public BigDecimal getScore() {
		return score;
	}

	public void setScore(BigDecimal score) {
		this.score = score;
	}

	public String getAnswerId() {
		return answerId;
	}

	public void setAnswerId(String answerId) {
		this.answerId = answerId;
	}

	public Integer getQuestionType() {
		return questionType;
	}

	public void setQuestionType(Integer questionType) {
		this.questionType = questionType;
	}

	public String getQuestionId() {
		return questionId;
	}

	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}

	public AppMockexamTheoryRecord() {
		this(null);
	}

	public AppMockexamTheoryRecord(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="理论表主键长度不能超过 50 个字符")
	public String getTheoryId() {
		return theoryId;
	}

	public void setTheoryId(String theoryId) {
		this.theoryId = theoryId;
	}
	
	public Integer getChecked() {
		return checked;
	}

	public void setChecked(Integer checked) {
		this.checked = checked;
	}
	
	@Length(min=0, max=50, message="用户主键长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
}